package com.mashibing.service;

import com.mashibing.internalcommon.dto.OrderInfo;
import com.mashibing.internalcommon.dto.ResponseResult;
import com.mashibing.internalcommon.request.OrderRequest;
import com.mashibing.request.ApiPassengerOrderRequest;

public interface OrderService {
    /**
     * 乘客下单
     * @param orderRequest
     * @return
     */
    ResponseResult addOrder(ApiPassengerOrderRequest orderRequest);

    /**
     * 乘客取消订单
     * @param orderId
     * @return
     */
    ResponseResult cancel(Long orderId);

    /**
     * 根据订单id查询乘客详情
     * @param orderId
     * @return
     */
    ResponseResult<OrderInfo> detail(Long orderId);

    /**
     * 乘客向司机推送订单
     * @param orderRequest
     * @return
     */
    ResponseResult book(ApiPassengerOrderRequest orderRequest);
}
